import { Component } from "react"
import store from "./store/storeIndex"
import './Page2.scss'
export default class Page2 extends Component {

    render() {
        const count = store.getState().count.count
        const proList = store.getState().pro.proList
        return <>
            <h1 className="page2H1">Page2------{count}--------{store.getState().count.msg}</h1>
            <ol>
                {proList && proList.map(item => <li key={item.proid}>{item.proname}</li>)}
            </ol>
        </>
    }
}